package com.iflytek.jcy.supervise.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iflytek.jcy.supervise.job.entity.Task;
import com.iflytek.jcy.supervise.job.entity.TaskEntity;
import com.iflytek.jcy.supervise.job.entity.TaskLog;
import com.iflytek.jcy.supervise.job.entity.TaskManageListBo;

import java.util.List;

/**
 * <p>
 * 任务表 Mapper 接口
 * </p>
 *
 * @author dgyu
 * @since 2022-10-20
 */
public interface TaskMapper extends BaseMapper<Task> {
    int addTask(TaskEntity taskEntity);

    int updateTask(TaskEntity taskEntity);

    int deleteTask(TaskEntity taskEntity);

    int queryTaskManageListTotal();

    int queryTaskLogLListTotal(TaskManageListBo taskManageListBo);

    Task queryTaskById(TaskEntity taskEntity);

    List<Task> queryTaskManageList(TaskManageListBo taskManageListBo);

    List<TaskLog> queryTaskLogListByID(TaskManageListBo taskManageListBo);
}
